<?php


/* @var $items */

use app\helpers\AppHelper;
use app\helpers\BookHelper;
use yii\helpers\Html;
use yii\helpers\Url;

?>
<?php foreach ($items as $k => $item): ?>
    <div class="column col-2 col-md-3 col-sm-3">
        <div class="card">
            <a class="overlay card-image" href="<?= Url::to(['comic/detail', 'id' => $item['id']]); ?>"><img alt="<?= Html::encode($item['title']); ?>" src="" class="img-responsive lazy" data-original="<?= AppHelper::formatImage($item['thumbnail']); ?>">
                <div class="overlay-panel text-ellipsis">
                    <span><?= BookHelper::getFinishName($item['is_finish'], $item['last_item']); ?></span>
                </div>
            </a>
            <h6 class="card-title text-ellipsis">
                <a title="<?= Html::encode($item['title']); ?>" href="<?= Url::to(['comic/detail', 'id' => $item['id']]); ?>"><?= Html::encode($item['title']); ?></a>
            </h6>
        </div>
    </div>
<?php endforeach; ?>

